

/**
 * @author pdrabik
 *
 * TODO To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
public class XMLpeon {
	
	private String entireMessage = new String("");
	private String XMLTyp = new String("NIC");
	private int Stats_ilR, Stats_ilC;
	public String[] temp;
	
	public XMLpeon (int tmpSize) {
		this.entireMessage = new String("");
		temp = new String[tmpSize];
	}
	
	public void doRow(String[] datacells) {
		String tmp = new String("<DATA>");
		String temp = new String("");
		for (int i=0;i<datacells.length-1;i++) {
			String[] typ_data = datacells[i].split(";");
			temp = "<CELL TYPE=\""+typ_data[0]+"\">"+typ_data[1]+"</CELL>";
			tmp= tmp+temp;
			Stats_ilC++;
		}
		tmp=tmp+"</DATA>";
		update(tmp);
		Stats_ilR++;
	}
	public void upType(String type) {
		XMLTyp = type;
	}
	
	public void update(String ten) {
		entireMessage=entireMessage+ten;
		}
	public int[] getStats() {
		int[] wyn = {Stats_ilR , Stats_ilC };
		return wyn;
	}
	public String XMLRes() {
		return entireMessage;
	}

}
